package com.spar.openprojects.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.spar.openprojects.shared.BusinessPartner;
import com.spar.openprojects.shared.Member;
import com.spar.openprojects.shared.Order;
import com.spar.openprojects.shared.OrderItem;
import com.spar.openprojects.shared.Project;

@RemoteServiceRelativePath("openprojects")
public interface RemoteDataService extends RemoteService {
	List<Project> getProjects(Boolean active, Member user);

	List<Order> getOrders(Project project, Member user);

	List<BusinessPartner> getBusinessPartners(Member user);

	Order persistOrder(Order order, Member user) throws Exception;

	void deleteOrderItem(OrderItem orderItem, Member user) throws Exception;

	String readUser();
}
